﻿using MathNet.Numerics.LinearAlgebra.Double;

namespace innovations.ml.core.solvers
{
    public class GradientDescent : Solver
    {
        public GradientDescent() : base() { }

        public override void Run(int numberOfLabels = 1)
        {
            Model.J_History = new DenseVector(Iterations, 0.0);
            Model.Solver = this;
            for (int i = 0; i < Iterations; i++)
            {
                Model.ComputeCost(true);
                // TODO: Find way to store J_History
                //Model.J_History[i] = Model.J;
            }
        }
    }
}
